package app.texas.com.devilfishhouse.View.Fragment.houuseList;

import android.view.View;

import com.universal_library.adapter.BaseAdapter;
import com.universal_library.fragment.BaseRecycleViewFragment;

import java.util.ArrayList;
import java.util.List;

import app.texas.com.devilfishhouse.Beans.HouseBean;
import app.texas.com.devilfishhouse.ui.SimpleBackPage;
import app.texas.com.devilfishhouse.ui.UiHelper;

/**
 * Created by solin on 2018/7/20.
 */

public class NewHouseFragment extends BaseRecycleViewFragment<HouseBean> {
    private List<HouseBean> houseBeans = new ArrayList<>();

    @Override
    protected void initData() {
        houseBeans.add(new HouseBean());
        houseBeans.add(new HouseBean());
        setmData(houseBeans, houseBeans.size());
    }

    @Override
    protected BaseAdapter getRecycleAdapter() {
        return new NewHouseListAdapter(mContext);
    }

    @Override
    public void onItemClick(View itemView, int position) {
        UiHelper.shoSimpleBack(mContext, SimpleBackPage.HOUSEINFO, null);
    }
}
